import time

#将时间戳转化为日期
timeStamp = 1432091528
timeArray = time.localtime(timeStamp)
timeFormat = time.strftime('%Y-%m-%d', timeArray)
print(timeFormat)

# 四舍五入保留1位小数
rating = 4.463137996219282
print('%.1f' % rating)
